import { translateTitle } from '@/utils/i18n'
const DataColumnDictionary = {
  DataColumnDictionary: {
    search: {
      form: {
        method: 'dams.table.column.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'TABLE_NAME',
            label: translateTitle('Dams.DamsSystemManagement.表名'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'FIELD_NAME',
            label: translateTitle('Dams.DamsSystemManagement.列名'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'FIELD_LABGUGE_DESC',
            label: translateTitle('Dams.DamsSystemManagement.列名描述'),
            labelHidden: false,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.DamsSystemManagement.所属子系统'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        api: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'TABLE_NAME',
            label: translateTitle('Dams.DamsSystemManagement.表名'),
            isRules: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'FIELD_NAME',
            label: translateTitle('Dams.DamsSystemManagement.列名'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'FIELD_LABGUGE_DESC',
            label: translateTitle('Dams.DamsSystemManagement.列名描述'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'VALUE_MAX_LENGTH',
            label: translateTitle('Dams.DamsSystemManagement.列长度'),
            isRules: true,
            regExp: '^\\+?[1-9]\\d*$',
            rulesHint: translateTitle('Dams.DamsSystemManagement.请输入大于0的正整数'),
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.DamsSystemManagement.所属子系统'),
            isRules: true,
            value: 'DAMS',
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'FIELD_TYPE',
            label: translateTitle('Dams.DamsSystemManagement.列类型'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'HTML_TYPE',
            label: translateTitle('Dams.DamsSystemManagement.HTML类型'),
          },
          {
            type: 'select',
            name: 'LANGUAGE_CODE',
            label: translateTitle('Dams.DamsSystemManagement.语言'),
            value: 'zh_CN',
            isRules: true,
            options: [],
          },
          {
            type: 'switch',
            name: 'ACTIVE_FLAG',
            label: translateTitle('Dams.DamsSystemManagement.激活标记'),
            activeValue: 'Y',
            inactiveValue: 'N',
            value: 'Y',
          },
          {
            type: 'switch',
            name: 'REQUIRED_FLAG',
            label: translateTitle('Dams.DamsSystemManagement.必填项标记'),
            activeValue: 'Y',
            inactiveValue: 'N',
            value: 'N',
          },
          {
            type: 'input',
            name: 'REMARK',
            label: translateTitle('Dams.DamsSystemManagement.备注'),
          },
          {
            type: 'numInput',
            name: 'SORT_SERIAL_NUMBER',
            label: translateTitle('Dams.DamsSystemManagement.排序字段'),
          },
          {
            type: 'input',
            name: 'EDIT_USER_NAME',
            label: translateTitle('Dams.DamsSystemManagement.编辑人'),
            hidden: true,
          },
          {
            type: 'input',
            name: 'EDIT_DATE_TIME',
            label: translateTitle('Dams.DamsSystemManagement.编辑时间'),
            hidden: true,
          },
          {
            type: 'select',
            name: 'ADD_USER_NAME',
            label: translateTitle('Dams.DamsSystemManagement.新增人'),
            hidden: true,
          },

          {
            type: 'input',
            name: 'ADD_DATE_TIME',
            label: translateTitle('Dams.DamsSystemManagement.新增时间'),
            hidden: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    addMethod: 'dams.table.column.add',
    deleteMethod: 'dams.table.column.delete',
    updateMethod: 'dams.table.column.edit',
  },
}
export default DataColumnDictionary
